home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_13_10 / saks / ada2.ada < prev    next >
Encoding:
Text File  |  1995-08-03  |  286 b   |  21 lines

  1. Listing 2 - Alternative indenting patterns
  2. for Ada if-else and while-loop statements.
  3.  
  4. if expression
  5. then
  6.     statement;
  7.     statement;
  8.     ...
  9. else
  10.     statement;
  11.     statement;
  12.     ...
  13. end if;
  14.  
  15. while expression
  16. loop
  17.     statement;
  18.     statement;
  19.     ...
  20. end loop;
  21.